package com.yjd.bi.jf.enums;

import com.yjd.comm.util.FrameUtil;

import java.util.Map;

/**
 * Created by chenpengfei on 2017/3/10.
 */
public enum JfProductType {
    DAIJIN(1,"代金券"),JIAXI(2,"加息券");
    JfProductType (int code,String label){
        this.code=code;
        this.label=label;
    }
    private int code;
    private String label;

    public static Map<Long,JfProductType> getMap(){
        Map<Long,JfProductType> map = FrameUtil.newHashMap();
        for(JfProductType t:JfProductType.values()){
            map.put(new Long(t.getCode()),t);
        }
        return map;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
